{{#if hasPubkey}}
    <form method="post" id="download-pubkey" action="/subscription/publickey" style="display: none;">
        <input type="hidden" name="_csrf" value="{{csrfToken}}">
        <input type="hidden" name="cid" value="{{cid}}">
    </form>
{{/if}}

<form id="main-form" method="post" action="/subscription/{{cid}}/subscribe">
    <input type="hidden" name="_csrf" value="{{csrfToken}}">
    <input type="hidden" class="tz-detect" name="tz" id="tz" value="{{tz}}">
    <input type="hidden" name="address" value="">
    <input type="hidden" name="sub" id="sub" value="">
    <input type="hidden" name="ucid" value="{{ucid}}">

{{> subscription_custom_fields}}

    <button type="submit">{{#translate}}subscribeToList{{/translate}}</button>
</form>

<script>
    document.getElementById('sub').value = new Date().getTime();
</script>

<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.12.0/moment.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment-timezone/0.5.3/moment-timezone-with-data.min.js"></script>
